import request from '@/utils/request'


/*
 *登陆
 */

export function login(username, password) {
  return request({
    url: '/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}


/*
 *用户信息
 */

export function getInfo(token) {
  return request({
    url: '/authority/sysUser/info',
    method: 'get',
    params: {
      token
    }
  })
}

/**
 * 退出
 */

export function logout() {
  return request({
    url: '/logOut',
    method: 'get'
  })
}
